<?php

namespace app\validate\api\recruit;

use think\Validate;

class authentValidate extends Validate
{

    protected $rule = [
        'user_name' => 'require|length:2,10',   ////|chs
        'Identity_id' => 'require|/^\d{17}[\dX]$/',
        'identity_positive' => 'require',
        'identity_reverse' => 'require',
    ];
    protected $message = [
        'user_name.require' => '姓名必须填写',
        ////'user_name.chs' => '姓名必须为汉字',
        'user_name.length' => '姓名长度在2-10位',
        'Identity_id' => '证件号不正确',
        'identity_positive' => '身份证正面必填',
        'identity_reverse' => '身份证反面必填',
    ];

}